<?php
namespace api\modules\mp\controllers;

use yii\web\Controller;
use Yii;
use yii\web\Response;

class PicController extends Controller {

    public function behaviors() {
        return array_merge(parent::behaviors(), [
            [
                'class' => 'yii\filters\auth\QueryParamAuth',
                'tokenParam' => 'session',
            ],
        ]);
    }

    public function beforeAction($action) {
        Yii::$app->response->format = Response::FORMAT_JSON;
        return parent::beforeAction($action);
    }

    public function actionIndex() {
        echo __METHOD__;
    }

    public function actionUpload() {

    }

}
